<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-16 14:30:11
 * @Last Modified time: 2023-02-16 14:58:13
 */
namespace app\common\enum\pay;

use frank\base\BaseEnum;

/**
 * 支付状态枚举类
 * Class PayStatusEnum
 * @package app\common\enum\pay
 */
class PayStatusEnum extends BaseEnum
{
    // 待支付
    const PENDING = 0;

    // 支付成功
    const SUCCESS = 1;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::PENDING => [
                'name' => '待付款',
                'value' => self::PENDING,
                'color' => 'grey',
            ],
            self::SUCCESS => [
                'name' => '已付款',
                'value' => self::SUCCESS,
                'color' => 'green',
            ],
        ];
    }

}